package com.hz.airline.task.page;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by kevin on 2020/2/1 18:11
 */
@Controller
public class WebPageView {

    /**
     * 轮播图
     */
    @RequestMapping(value = "/viewpager/{index}")
    public String viewpager(@PathVariable String index) {
        return "viewpager" + index;
    }

    /**
     * 热门航线
     */
    @RequestMapping(value = "/hotline/{index}")
    public String hotAirLine(@PathVariable String index) {
        return "hotline" + index;
    }

    /**
     * 系统公告
     */
    @RequestMapping(value = "/systemtip/{index}")
    public String systemTip(@PathVariable String index) {
        return "systemtip" + index;
    }

    /**
     * 会员专享
     */
    @RequestMapping(value = "/member/{index}")
    public String memberTip(@PathVariable String index) {
        return "member" + index;
    }

    /**
     * 插入模拟数据
     */
    @RequestMapping(value = "/fakedata/{index}")
    public String indexSet(@PathVariable String index) {
        return "fakedata";
    }
}
